/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sys.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.persistence.MyDataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 配送员管理Entity
 * @author huoyan403
 * @version 2016-11-09
 */
public class TbSender extends MyDataEntity<TbSender> {
	
	private static final long serialVersionUID = 1L;
	private Integer shopId;
	private String id;		// 真实姓名
	private String realName;		// 真实姓名
	private String registrationId;
	private String mobile;		// 手机号
	private String bakMobile;		// 备用手机号
	private String account;		// 账户名 冗余字段,暂时不用,登陆用手机号即可
	private String password;		// 密码
	private String headUrl;		// 头像
	private String activeFlag;		// 是否激活 0 不激活 1 激活
	private String deleteFlag;		// delete_flag
	private Date createTime;		// create_time
	private Date updateTime;		// update_time
	private Byte sex;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Byte getSex() {
		return sex;
	}

	public void setSex(Byte sex) {
		this.sex = sex;
	}

	public TbSender() {
		super();
	}

	public TbSender(String id){
		super(id);
	}

	public Integer getShopId() {
		return shopId;
	}

	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}

	@Length(min=0, max=50, message="真实姓名长度必须介于 0 和 50 之间")
	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}
	
	@Length(min=0, max=20, message="手机号长度必须介于 0 和 20 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=0, max=20, message="备用手机号长度必须介于 0 和 20 之间")
	public String getBakMobile() {
		return bakMobile;
	}

	public void setBakMobile(String bakMobile) {
		this.bakMobile = bakMobile;
	}
	
	@Length(min=0, max=50, message="账户名 冗余字段,暂时不用,登陆用手机号即可长度必须介于 0 和 50 之间")
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}
	
	@Length(min=0, max=50, message="密码长度必须介于 0 和 50 之间")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	@Length(min=0, max=255, message="头像长度必须介于 0 和 255 之间")
	public String getHeadUrl() {
		return headUrl;
	}

	public void setHeadUrl(String headUrl) {
		this.headUrl = headUrl;
	}
	
	@Length(min=0, max=3, message="是否激活 0 不激活 1 激活长度必须介于 0 和 3 之间")
	public String getActiveFlag() {
		return activeFlag;
	}

	public void setActiveFlag(String activeFlag) {
		this.activeFlag = activeFlag;
	}
	
	@Length(min=0, max=3, message="delete_flag长度必须介于 0 和 3 之间")
	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getRegistrationId() {
		return registrationId;
	}
	public void setRegistrationId(String registrationId) {
		this.registrationId = registrationId;
	}
}